﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类CALIB_LOG
     ///</summary>
     public class CALIB_LOG
     {
         private int __ID=0 ;
         private string __CalibID=string.Empty ;
         private string __JCXH=string.Empty ;
         private string __CalibName=string.Empty ;
         private string __StartTime=string.Empty ;
         private string __EndTime=string.Empty ;
         private string __DetailedData=string.Empty ;
         private string __ProcessPath=string.Empty ;
         private string __ALL_PD=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public CALIB_LOG()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("CalibID",false);
             this.__Changed.Add("JCXH",false);
             this.__Changed.Add("CalibName",false);
             this.__Changed.Add("StartTime",false);
             this.__Changed.Add("EndTime",false);
             this.__Changed.Add("DetailedData",false);
             this.__Changed.Add("ProcessPath",false);
             this.__Changed.Add("ALL_PD",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__CalibID =string.Empty;
             this.__JCXH =string.Empty;
             this.__CalibName =string.Empty;
             this.__StartTime =string.Empty;
             this.__EndTime =string.Empty;
             this.__DetailedData =string.Empty;
             this.__ProcessPath =string.Empty;
             this.__ALL_PD =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["CalibID"] = false;
             this.__Changed["JCXH"] = false;
             this.__Changed["CalibName"] = false;
             this.__Changed["StartTime"] = false;
             this.__Changed["EndTime"] = false;
             this.__Changed["DetailedData"] = false;
             this.__Changed["ProcessPath"] = false;
             this.__Changed["ALL_PD"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[CalibID]的数据
         /// </summary>
         public string CalibID
         {
              set{ __CalibID = value.Replace("'","’"); __Changed["CalibID"] = true;}
              get{return __CalibID;}
         }
         /// <summary>
         ///设置或获取类中的[JCXH]的数据
         /// </summary>
         public string JCXH
         {
              set{ __JCXH = value.Replace("'","’"); __Changed["JCXH"] = true;}
              get{return __JCXH;}
         }
         /// <summary>
         ///设置或获取类中的[CalibName]的数据
         /// </summary>
         public string CalibName
         {
              set{ __CalibName = value.Replace("'","’"); __Changed["CalibName"] = true;}
              get{return __CalibName;}
         }
         /// <summary>
         ///设置或获取类中的[StartTime]的数据
         /// </summary>
         public string StartTime
         {
              set{ __StartTime = value.Replace("'","’"); __Changed["StartTime"] = true;}
              get{return __StartTime;}
         }
         /// <summary>
         ///设置或获取类中的[EndTime]的数据
         /// </summary>
         public string EndTime
         {
              set{ __EndTime = value.Replace("'","’"); __Changed["EndTime"] = true;}
              get{return __EndTime;}
         }
         /// <summary>
         ///设置或获取类中的[DetailedData]的数据
         /// </summary>
         public string DetailedData
         {
              set{ __DetailedData = value.Replace("'","’"); __Changed["DetailedData"] = true;}
              get{return __DetailedData;}
         }
         /// <summary>
         ///设置或获取类中的[ProcessPath]的数据
         /// </summary>
         public string ProcessPath
         {
              set{ __ProcessPath = value.Replace("'","’"); __Changed["ProcessPath"] = true;}
              get{return __ProcessPath;}
         }
         /// <summary>
         ///设置或获取类中的[ALL_PD]的数据
         /// </summary>
         public string ALL_PD
         {
              set{ __ALL_PD = value.Replace("'","’"); __Changed["ALL_PD"] = true;}
              get{return __ALL_PD;}
         }
    }
}
